import 'dart:core';
import 'package:library_base/entities/generated/json/base/json_field.dart';
import 'dart:convert';
import 'package:library_base/entities/generated/json/bluetooth_device_entity.g.dart';

@JsonSerializable()
class BluetoothDeviceEntity {

  String? name;

  late String address;

  BluetoothDeviceEntity();

  factory BluetoothDeviceEntity.fromJson(Map<String, dynamic> json) => $BluetoothDeviceEntityFromJson(json);

  Map<String, dynamic> toJson() => $BluetoothDeviceEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }

}
